<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('军服设置')" />
</head>
<body >
	<div class="main-content">
		<form class="form-horizontal" id="form-new-edit">
			<input name="id"  type="hidden"   th:value="${id}" />
			<input name="stuId"  type="hidden"   th:value="${stuId}" />
			<div class="form-group">
				<label class="col-sm-2 control-label">军服套装(尺码)：</label>
				<div class="col-sm-10">
					<label th:each="clo:${clos}" class="radio-box">
						<input  name="newStuSuit" type="radio" th:value="${clo.name}" th:text="${clo.name}" th:checked="${clo.flag}" >
					</label>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label">军训鞋子(尺码)：</label>
				<div class="col-sm-10">
					<label th:each="clo:${shoes}" class="radio-box">
						<input  name="newStuShoes" type="radio" th:value="${clo.name}" th:text="${clo.name}" th:checked="${clo.flag}" >
					</label>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label">军服短袖(尺码)：</label>
				<div class="col-sm-10">
					<label th:each="clo:${shit}" class="radio-box">
						<input  name="newStuShit" type="radio" th:value="${clo.name}" th:text="${clo.name}" th:checked="${clo.flag}" >
					</label>
				</div>
			</div>

		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		var prefix = ctx + "common/student";
        $(function () {
            $("[type='radio']").css("opacity","1");
        })
		$("#form-stu-edit").validate({
			rules:{
				dictSort:{
					digits:true
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/edit", $('#form-new-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
